package day07;

import java.util.Arrays;

public class MainTest3 {
    public static void main(String[] args) {

        int[] arrInt = {10,20,30,40,50,60,70};
        int index=3;
        for (int i = index; i < arrInt.length-1 ; i++) {
            arrInt[i] = arrInt[i+1];
        }
        arrInt = Arrays.copyOf(arrInt,arrInt.length-1);
        System.out.println(Arrays.toString(arrInt));
    }
}
